<include file="__THEME__/header" />
<link href="../Public/css/photo.css" rel="stylesheet" type="text/css" />
<!-- 头部 end -->
<div class="content_holder">
<div class="content no_bg">
<include file="../Public/_mainNav" />
  <!-- 内容 begin  -->
  <div class="main no_l">
    <div class="mainbox">
      <!-- 右侧内容 begin  -->
      <include file="../Public/_isHotList" />
      <div class="mainbox_appC">
        <div class="person_info">
          <div class="userPic"> <span class="headpic50"><a href="{:U('home/Space/index',array(uid=>$uid))}"><img src="{$uid|getUserFace}" /></a></span> </div>
          <div style="padding-left: 70px;"><h2><a href="{:U('home/Space/index',array(uid=>$uid))}">{$userName}</a>的{$ts['app']['app_alias']}“{$album.name}”</h2>
            <p><span class="cGray2">创建时间{:date('Y年m月d日',$album['cTime'])}</span></p>
            <p><if condition=" $mid neq $uid">
              <a href="{:U('/Index/photos',array('uid'=>$uid))}" class="on"><span>{$uid|getUserName}的全部图片</span></a>
              <else />
              <a href="{:U('/Index/photos',array('uid'=>$mid))}" class="on"><span>我的全部图片</span></a>
			  </if></p>
            </p>
          </div>
        </div>
        <div class="lineS_btm top_menu_album">
          <span class="right">
          <if condition="$album['privacy'] eq 1 && $album['photoCount'] neq 0">                     
         	<if condition="$_SESSION['publish_weibo']">
				{:W('Weibo',array('tpl_name'=>'photo_create_weibo','button_title'=>'分享'))}
                <php>$tpl_data = $_SESSION['publish_weibo'];</php>
            	<script>
            	$(document).ready(function(){
                    _widget_weibo_start('', '{$tpl_data}');
            	});
                </script>
                <php>unset($_SESSION['publish_weibo']);</php>
            <else />            	
				{:W('Weibo',array('tpl_name'=>'album_share_weibo','button_title'=>'分享','addon_info'=>'<h4>相册：'.$album['name'].'</h4><h5>来自：'.getUserName($album['userId']).'</h5>'))}
            	<php>
             	$coverImage=$album['coverImagePath']?$album['coverImagePath']:$photos['data'][0]['savepath'];
                $tpl_data = array('author'=>getUserName($album['userId']),'title'=>$album['name'],'source'=>getUserName($photo['userId']).'的相册','url'=>U('photo/Index/album',array('id'=>$album['id'],'uid'=>$album['userId'])),'type'=>1,'type_data'=>$coverImage);
                $tpl_data = urlencode(serialize($tpl_data));
       			</php>
            </if>
			<input type="button" value="分享" class="BtnShare" onclick="_widget_weibo_start('', '{$tpl_data}');" id="BtnShare_{$photo.id}"/>		  </if>
          </span> 
          <span class="photo_tit"><strong>{$album.name}</strong></span>
			<span>（共<span class="cRed">{$album.photoCount}</span> 张）</span><a href="{:U('/Index/albums',array(uid=>$uid))}">返回{$userName}的{$ts['app']['app_alias']}</a>
        </div>
        <div class="lh30 alR"><if condition="$album['userId'] eq $mid"> <a href="{:U('/Upload/flash',array(albumId=>$album[id]))}" class="mr10">添加新图片</a> <span id="more_operation" > <a href="{:U('/Manage/album_edit',array(id=>$album[id]))}" class="mr10">编辑该{$ts['app']['app_alias']}</a> <a href="{:U('/Manage/delete_album',array(id=>$album[id]))}" class="mr10" onclick="return confirm('删除该{$ts['app']['app_alias']}的同时，将删除其所有图片，确定删除？');">删除该{$ts['app']['app_alias']}</a> <a href="{:U('/Manage/album_order',array(id=>$album[id]))}" class="mr10">图片排序</a></span> 
            <else />
             </if></div>
        <php>if(empty($photos['data'])){</php>
            <div style="padding:20px"> 该{$ts['app']['app_alias']}还没有图片
              <if condition=" $mid eq $album['userId'] ">，<a href="{:U('/Upload/flash',array(albumId=>$album[id]))}">开始添加新图片</a></if>
            </div>
        <php>}else{</php>
            <include file="../Public/_photoList" />       
        <php>}</php>        
     <div class="clear"></div>
      </div>
    </div>
  </div>
</div>
</div>
<include file="__THEME__/footer" />
<script src="../Public/js/preview.js" type="text/javascript"></script>